import ins from '../utils/request'
const link = ( url = "", method = "GET", data = {}, params = {} ) => {
    return new Promise((resolve, reject) => {
        ins.request({ url, method, data, params })
        .then((res: any) => resolve(res)).catch((err:any) => reject(err))
    })
}


export default link